package com.accenture.automation.biz.api.bean;



import com.alibaba.fastjson.annotation.JSONField;

public class ResponseBaseBean<T> {

	@JSONField(name = "RequestId")
	private String requestId;
	@JSONField(name = "HasError")
	private Boolean hasError = false;
	@JSONField(name = "ResponseItems")
	private ResponseItems<T> responseItems ;
	
	@JSONField(name = "status")
	private Integer status;
	
	public ResponseItems<T> getResponseItems() {
		return responseItems;
	}
	public void setResponseItems(ResponseItems<T> responseItems) {
		this.responseItems = responseItems;
	}
	@SuppressWarnings("hiding")
	public class ResponseItems<T>{
		@JSONField(name = "ErrorCode")
		private String errorCode;
		
		@JSONField(name = "ErrorMsg")
		private String errorMsg ;
		
		@JSONField(name = "Data")
		private T data ;
		
		@JSONField(name = "Batch")
		private T batch ;
		
		@JSONField(name = "Batchs")
		private T batchs ;

		public String getErrorCode() {
			return errorCode;
		}

		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}

		public String getErrorMsg() {
			return errorMsg;
		}

		public void setErrorMsg(String errorMsg) {
			this.errorMsg = errorMsg;
		}

		public T getData() {
			return data;
		}

		public void setData(T data) {
			this.data = data;
		}

		public T getBatch() {
			return batch;
		}

		public void setBatch(T batch) {
			this.batch = batch;
		}

		public T getBatchs() {
			return batchs;
		}

		public void setBatchs(T batchs) {
			this.batchs = batchs;
		}
		
		
		
	}
	public String getRequestId() {
		return requestId;
	}
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	public Boolean getHasError() {
		return hasError;
	}
	public void setHasError(Boolean hasError) {
		this.hasError = hasError;
	}
	@JSONField(serialize = false)
	public T getBatch(){
		if(this.responseItems !=null){
			return this.responseItems.getBatch();
		}
		return null;
	}
	@JSONField(serialize = false)
	public T getBatchs(){
		if(this.responseItems !=null){
			return this.responseItems.getBatchs();
		}
		return null;
	}
	@JSONField(serialize = false)
	public T getData(){
		if(this.responseItems !=null){
			return this.responseItems.getData();
		}
		return null;
	}
	@JSONField(serialize = false)
	public String getErrorCode() {
		if(this.responseItems !=null){
			return this.responseItems.getErrorCode();
		}
		return null;
	}
	
	@JSONField(serialize = false)
	public String getErrorMsg() {
		if(this.responseItems !=null){
			return this.responseItems.getErrorMsg();
		}
		return null;
	}

	public Integer getStatus() {
		if(this.status != null){
			return status;
		}
		return null;
	}
	
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	
}
